<!DOCTYPE html><!--/*技术支持，小庄602842076     验证：商城技术支持*/
/*技术支持，小庄602842076    验证：商城技术支持*/
/*技术支持，小庄602842076    验证：商城技术支持*/
/*技术支持，小庄602842076    验证：商城技术支持*/
/*技术支持，小庄602842076    验证：商城技术支持*/
/*https://shop116998991.taobao.com/*/
/*https://shop116998991.taobao.com/*/
/*https://shop116998991.taobao.com/*/-->

<html xmlns:th="http://www.thymeleaf.org">
<head>
    <base href="/">
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
    <meta name="description" content="" />
    <meta name="viewport" content="user-scalable=no">
    
    <meta name="google-site-verification" content="BstJA3X9z6f9HcvoN9AZTwaKo_9Abj_j7dVBPfy640s" />
    <meta name="baidu-site-verification" content="IYCrtVH0i1" />
    <meta property="wb:webmaster" content="239d3d1dbdde1b2c" />
    <link rel="icon" type="image/png" href="images/favicon.ico"/>
    <link rel="stylesheet" href="css/menuPage.css?v=2015-5-20">
    <link rel="stylesheet" href="css/common.css?v=2015-5-20">
    <script type="text/javascript">
        
        (function(document, screen) {if (screen.width < 760) {document.location.href="/mobile/";}}(document, screen));
    </script>
    
    <link rel="stylesheet" href="css/common.css?v=2015-5-20"/>
    
    <link rel="stylesheet" href="css/user_center.css"/>
    <script src="js/jquery-1.8.1.js"></script>
    <script>
        $(function(){
            $("#goodsManage").addClass("active")
        })

    </script>
    <!--[if lte IE 7]><script>window.onload=function(){location.href="/ie6warning/"}</script><![endif]-->
    <!--[if lt IE 9]>
    <script src="js/respond.js"></script>


    <script>
        var e = "abbr, article, aside, audio, canvas, datalist, details, dialog, eventsource, figure, footer, header, hgroup, mark, menu, meter, nav, output, progress, section, time, video, dh-dialog, dh-checkbox".split(', ');
         var i= e.length;while (i--){document.createElement(e[i])}
    </script>
    <![endif]-->

    <title>个人中心 - 订单管理</title>
</head>
<body class="day " ng-controller="bodyCtrl"  day-or-night>
    <section class="common-back" id="wrapBackground">
        
            <header id="header">
                <div th:include="template::header"></div>
            </header>
        
        <div id="main-box">
             <!--二维码-->
            <div class="qrCode-frame" ng-hide="qrCodeStatus">
                <img src="images/wx.png" alt="扫描二维码" />
                <em ng-click="qrCodeStatus=true">X</em>
            </div>
        
            <div ng-controller="colorAction">
                <div class="dayColor_two"></div>
                <div class="dayColor_one"></div>
                <div class="dayColor_three" ng-class="{dayColor_threeActive:threeActive}"></div>
            </div>
        
            
    <section>
        <div class="user-center-main-box common-width clearfix">
            <div th:include="left.html"></div>
            <article class="fl user-center-main">
                <header>商品管理</header>
                
    <section class="user-center-body order" id="orderBody">

        <!--   商品列表     -->
        <div style="margin-bottom: 30px;border-bottom: #DCDCDC solid 2px;padding-bottom: 10px;">我的商品
        <div style="float: right;"><button type="button" id="addGoods" class="btn btn-success min-btn">添加商品</button> </div>
        </div>
        <ul class="clearfix menu-group menu-group-img menu-first-load">

            <!--  商品列表           -->
                                            
            <li title="黄油虾仁炒饭" class="menu-item hasImg" accessorykey="39215-2048898" data-sale="8" data-price="38.00">
                <div class="menu-item-img">  
                    <img data-src="http://dhcmenuitem.dhero.cn/142615425540822113425540737808?imageView2/1/w/202/h/202/" src="http://dhcmenuitem.dhero.cn/0"  width="202" height="202" /> 
                </div>
                <div class="meun-item-name"><span class="">黄油虾仁炒饭&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label style="color: #e1854d;">￥28.00</label></span></div>
               
                <div class="meun-item-sale clearfix">
                    <span class="last"></span> 
                    
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" class="btn btn-success min-btn down" value="下架"/>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" class="btn btn-warning min-btn delete" style="display: inline-block;" value="删除"/>
                    
                </div>
                
            </li>
              
            <!-- 商品列表结束             -->
                    
            <li th:each="good : ${goods}" title="辣白菜便当" class="menu-item hasImg" accessorykey="39215-2048900" data-sale="0" data-price="28.00">
                <div class="menu-item-img">  
                    <img data-src="http://dhcmenuitem.dhero.cn/142615433527424161369469948113?imageView2/1/w/202/h/202/" th:src="${good.thumbnail}"  width="202" height="202" />
                </div>
                <div class="meun-item-name"><span class="ellipsis" th:text="${good.name}">辣白菜便当</span></div>
                <pclass="ellipsis meun-item-des"></p>
                    <div class="meun-item-sale clearfix">
                        <span class="last"></span>
                        <span class="price" th:text="${goods.salePrice}">￥28.00</span>
                        <span ng-if="menuItemCount['39215-2048900']" ng-class="{disinbl:menuItemCount['39215-2048900']}"
                              class="badge disnone" ng-bind="menuItemCount['39215-2048900']"></span>
                        <span class="fr"></span>
                    </div>
                
            </li>
   
            
        </ul>
         
        <page show="4" total="1"></page>
    </section>


            </article>
        </div>
        </div>
    </section>

        </div>
    </section>
    
        <footer id="footer">
            <div th:include="template::footer"></div>
    </footer>
    
    
    <dh-dialog class="disnone" height="500" feeedbackclass="userFeedback" type="user-feedback" header="意见反馈" show="userFeedback">
        <div ng-controller="feedbackCtrl">
            <form novalidate="true" name="feedbackForm" class="inline">
                <div class="form-group row mb10">
                    <label class="col-3">联系方式：</label>
                    <div class="col-8">
                        <input type="text" maxlength="20" name="userContact" required ng-focus="userContactFocus()" ng-class="{error:feedback.phoneMessage}" placeholder="请输入您的手机号码" ng-model="feedback.userContact"/>
                    </div>
                </div>
                <div class="row mb10">
                    <div class="clo-8 col-offset-3" ng-if="feedback.phoneMessage">
                        <span class="vaildate-error">联系方式不能为空</span>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-3 vt">反馈信息：</label>
                    <div class="col-8">
                        <textarea name="feedbackMessage"  placeholder="可以说说您对外卖超人的意见" ng-focus="feedbacFocus()" required ng-class="{error:feedback.feedbackMessageTip}" ng-model="feedback.feedbackMessage" maxlength="300" cols="25" rows="7"></textarea>
                    </div>
                </div>
                <div class="row mb10">
                    <div class="clo-8 col-offset-3" ng-if="feedback.feedbackMessageTip">
                        <span class="vaildate-error">反馈信息不能为空</span>
                    </div>
                </div>
                <div class="tc">
                    <button class="btn normal-btn btn-success" ng-click="feedbackSubmit()">确认</button>
                    <button class="btn normal-btn btn-cancel" ng-click="feedbackCancel()">取消</button>
                </div>
            </form>
        </div>
        <div class="common-dialog-footer">
            咨询加QQ群：337212031
        </div>
    </dh-dialog>
    
    <dh-dialog type="review" header="写评论 攒人品" height="540" show="showReview" ng-init="timeSelectedIndex=0">
        <div class="review-body" ng-controller="reviewCtrl">
            <h2 ng-bind="restaurantName"></h2>
            <ul>
                <li class="clearfix">
                    <label><span class="red">*</span>总体评价：</label>
                    <ul class="review-star big-star">
                        <li class="star1" ng-class="{active:reviewObj.totalReview==1}" bigStarIndex="0"></li>
                        <li class="star2" ng-class="{active:reviewObj.totalReview==2}" bigStarIndex="1"></li>
                        <li class="star3" ng-class="{active:reviewObj.totalReview==3}" bigStarIndex="2"></li>
                        <li class="star4" ng-class="{active:reviewObj.totalReview==4}" bigStarIndex="3"></li>
                        <li class="star5" ng-class="{active:reviewObj.totalReview==5}" bigStarIndex="4"></li>
                    </ul>
                    <span ng-if="isReviewError" class="review-error fl">请选择总体评价！</span>
                    <span class="fr zk-btn" ng-click="expand()">
                        <span ng-bind="expandText"></span>
                        <i class="icon" ng-class="{'arrows-s-up':isShow,'arrows-s-down':!isShow}"></i>
                    </span>
                </li>
                <li class="clearfix" ng-show="isShow">
                    <label >口味：</label>
                    <ul class="review-star small-star" reviewType="tasteReview">
                        <li class="star11" ng-class="{active:reviewObj.tasteReview==1}" bigStarIndex="0"></li>
                        <li class="star22" ng-class="{active:reviewObj.tasteReview==2}" bigStarIndex="1"></li>
                        <li class="star33" ng-class="{active:reviewObj.tasteReview==3}" bigStarIndex="2"></li>
                        <li class="star44" ng-class="{active:reviewObj.tasteReview==4}" bigStarIndex="3"></li>
                        <li class="star55" ng-class="{active:reviewObj.tasteReview==5}" bigStarIndex="4"></li>
                    </ul>
                </li>
                <li class="clearfix" ng-show="isShow">
                    <label>服务：</label>
                    <ul class="review-star small-star" reviewType="serveReview">
                        <li class="star11" ng-class="{active:reviewObj.serveReview==1}" bigStarIndex="0"></li>
                        <li class="star22" ng-class="{active:reviewObj.serveReview==2}" bigStarIndex="1"></li>
                        <li class="star33" ng-class="{active:reviewObj.serveReview==3}" bigStarIndex="2"></li>
                        <li class="star44" ng-class="{active:reviewObj.serveReview==4}" bigStarIndex="3"></li>
                        <li class="star55" ng-class="{active:reviewObj.serveReview==5}" bigStarIndex="4"></li>
                    </ul>
                </li>
                <li class="clearfix" ng-show="isShow">
                    <label>速度：</label>
                    <ul class="review-star small-star" reviewType="speedReview">
                        <li class="star11" ng-class="{active:reviewObj.speedReview==1}" bigStarIndex="0"></li>
                        <li class="star22" ng-class="{active:reviewObj.speedReview==2}" bigStarIndex="1"></li>
                        <li class="star33" ng-class="{active:reviewObj.speedReview==3}" bigStarIndex="2"></li>
                        <li class="star44" ng-class="{active:reviewObj.speedReview==4}" bigStarIndex="3"></li>
                        <li class="star55" ng-class="{active:reviewObj.speedReview==5}" bigStarIndex="4"></li>
                    </ul>
                </li>
                <li class="clearfix">
                    <label>评价：</label>
                    <div class="fl">
                        <textarea ng-model="reviewText" maxlength="150" name="" id="" cols="40" rows="8"></textarea>
                    </div>
                </li>
                <li class="clearfix lh34">
                    <label><span class="red">*</span>送餐时间：</label>
                    <div class="fl">
                        <dh-select data="datas" selectedindex="timeSelectedIndex" change="timeIndexChange(index)"></dh-select>
                    </div>
                    <span ng-if="isTimeError" class="time-error">请选择送餐时间！</span>
                </li>
            </ul>
            <p class="songGift">评论即可送氪星币</p>
            <div class="tc">
                <button class="btn btn-success" ng-click="submitReview()">确认</button>
                <button class="btn btn-cancel" ng-click="cancelReview()">取消</button>
            </div>
            <div ng-if="showBig" class="show-big" ng-style="bigStyle">
                <p ng-bind="reviewData.num"></p>
                <p ng-bind="reviewData.des" class="review-des"></p>
            </div>
            <div ng-show="showSmall" class="show-samll" id="show-samll" ng-style="samllStyle">
                <p ng-bind="reviewSmallData"></p>
            </div>
        </div>
    </dh-dialog>
    <dh-dialog class="disnone" index="1001" header="超人小提示" show="reviewError">
        <div class="alert-box error">
            <p ng-bind="reviewErrorMsg"></p>
        </div>
         <div class="errorBtn">
            <button class="btn btn-success small-btn" ng-click="reviewErrorClose()">确认</button>
        </div>
    </dh-dialog>
    <dh-dialog class="disnone" index="1001" header="超人小提示" show="refundRight">
        <div class="alert-box error font12">
            <p>抱歉，您暂时无法进行在线投诉。<br />您可以拨打超人免费热线进行投诉与维权。<br />4001-517-577</p>
        </div>
         <div class="errorBtn">
            <button class="btn btn-success small-btn" ng-click="refundRightClose()">确认</button>
        </div>
    </dh-dialog>
    <dh-dialog class="disnone" index="1002" type="alert" header="" show="refundFuc">
        <div class="alert-box refundFuc">
            <p>申请已提交，请耐心等候！</p>
        </div>
    </dh-dialog>
    <dh-dialog class="disnone" type="alert" header="" show="giftReview" feeedbackclass="giftReview">
        <div class="">
            <p ng-bind="giftReviewMsg"></p>
        </div>
    </dh-dialog>
    <dh-dialog class="disnone" type="contact" header="联系餐厅" show="showContact ">
        <div class="contact-body">
            <p ng-bind="phones" class="p10"></p>
            <p ng-bind="orderOids"></p>
            <div class="tc">
                <button class="btn btn-success" ng-click="closeContact()">关闭</button>
            </div>
        </div>
    </dh-dialog>
    <dh-dialog class="disnone" type="contact" header="超人小提示" show="reviewtip ">
        <div class="reviewtip-body">
            <p class="p10">您点的外卖是否已经送达？</p>
            <div class="tc">
                <button class="btn btn-cancel" ng-click="closeTip()">未送到</button>
                <button class="btn btn-success" ng-click="toReview()">已送到</button>
            </div>
        </div>
    </dh-dialog>
    <dh-dialog class="disnone" index="1001" header="退款申请" show="refundApply" height="512">
        <div class="refund-apply" ng-controller="refundCtrl">
           <p class="c999" style="padding-bottom:10px;">您正在对订单 [[ num ]] 发起了退款申请：</p>
           <div class="form-group row form-group-refund">
               <label><span class="red">*</span>联系方式：</label><input type="text" ng-model="refundForm.phone" placeholder="请输入您的手机号" maxlength="11" ng-class="{error:refundForm.phoneMessage}"/>
                <span class="vaildate-error col-8 w80" ng-if="refundForm.phoneMessage">
                    <span ng-bind="refundForm.phoneMessage"></span>
                </span>
           </div>
           <div class="form-group row form-group-refund">
               <label><span class="red">*</span>退款金额：</label><select name="" id="" ng-model="refundForm.refundMoney" ng-options="m.name for m in refundMoneyData" ng-class="{error:refundForm.refundMoneyMessage}" ng-change="refundMoneyChange()">
               </select>
                <span class="vaildate-error col-8 w80" ng-if="refundForm.refundMoneyMessage">
                    <span ng-bind="refundForm.refundMoneyMessage"></span>
                </span>
               <p ng-if="refundForm.refundMoney.id == 2" class="refundForm-money">
                    <label for="">&nbsp;</label><input type="text" ng-model="refundForm.money" placeholder="请输入退款金额" ng-class="{error:refundForm.moneyMessage}"/>
                </p>
                <span class="vaildate-error col-8 w80" ng-if="refundForm.moneyMessage">
                    <span ng-bind="refundForm.moneyMessage"></span>
                </span>
           </div>
           <div class="form-group row form-group-refund">
                <label><span class="red">*</span>退款理由：</label><select name="" id="reason" ng-model="refundForm.reason" ng-options="m.name for m in reasonData" ng-class="{error:refundForm.reasonDataMessage}" ng-change="refundReasonChange()">
               </select>
               <span class="vaildate-error col-8 w80" ng-if="refundForm.reasonDataMessage">
                    <span ng-bind="refundForm.reasonDataMessage"></span>
                </span>
               <div ng-if="refundForm.reason.id == 4">
                   <textarea name="" id=""  rows="3" ng-class="{error:refundForm.otherReasonMessage}" maxlength="50" ng-model="refundForm.otherReason" placeholder="请输入退款理由"></textarea>
               </div>
                <span class="vaildate-error col-8 w80" ng-if="refundForm.otherReasonMessage">
                    <span ng-bind="refundForm.otherReasonMessage"></span>
                </span>
           </div>
           <div>
               <label>上传凭证：<span>（只支持JPG、PNG、GIF、大小不超过5M）</span></label>
               <div class="form-group row relative">
                   <div class="fl">
                       <p class="filed-box">
                            <input type="file" common-file data='formData' success="fileSuccess(data)" error='fileError(data)' id="imgInp" accept="image/*" />
                        </p>
                       <div class="show-img">
                            <i ng-show="refundForm.imgRemove" ng-click="removeImg()"></i>
                            <p ng-hide="refundForm.imgRemove"><span>+</span>本地浏览</p>
                            <img ng-src="[[ refundForm.imgSrc ]]" ng-show="refundForm.imgRemove" alt="" width="86" height="86" id="blah" />
                        </div>
                   </div>
                   <p class="IE_tips" ng-if="IETips"><span>您的浏览器不支持图片预览</span>，<br />请下载<a href="http://www.google.cn/intl/zh-CN/chrome/browser/" target="_blank">chrome</a>或者<a href="http://www.firefox.com.cn/" target="_blank">firefox</a>查看预览,<br />或者提交成功后退款详情里面查看图片</p>
               </div>
           </div>
           <p class="upimgError" ng-if="refundForm.upimgError"><span ng-bind="refundForm.upimgError"></span></p>
           <div class="tc">
                <button class="btn btn-success small-btn" ng-click="refundApplyOk()" ng-disabled="refundSubmit" id="submit">确认</button>
                <button class="btn btn-cancel small-btn" ng-click="refundApplyCancel()">取消</button>
            </div>
        </div>
    </dh-dialog>

     <ul class="site-fixed">
        <li class="scroll-top"><img src="images/scroll_top1.png" alt=""/> </li>
        <li class="scorll-feekback" ng-click="userFeedback=true">
            <img src="images/scorll_feekback.png" alt=""/>
            <div>意见反馈</div>
        </li>
        <li class="scroll-wx">
            <img src="images/scroll_wx.png" alt=""/>
             <div><img src="images/wx.png" alt=""/></div>
        </li>
    </ul>
    <script>
        $(function () {

            $(document).on("click",".delete",function(){
                let that =this
                if(confirm("确定删除该商品吗")){
                    $.ajax({
                        type: "get"
                        ,url: "business/goodsdel/"+$(that).val()
                        ,success: function(rs){
                            $(that).parent().parent().remove()
                            alert(rs.data.msg)
                        }
                        ,error : function(){
                            console.log("操作失败")
                        }

                    })
                }
            });
            $(document).on("click",".down",function(){
                let that =this
                if(confirm("确定下架该商品吗")){
                    $.ajax({
                        type: "get"
                        ,url: "business/goodsdown/"+$(that).val()
                        ,success: function(rs){
                            alert(rs.data.msg)
                        }
                        ,error : function(){
                            console.log("操作失败")
                        }

                    })
                }
            });

        })
    </script>
    
    <script type="text/javascript">
        var token = 'u8wA1RHnkO8OfIWaX5Uxg3u5Og9X718nFVOQTFXg:WsqxKsgpRoNjeOqH4m8Uo80w3TM=:eyJtaW1lTGltaXQiOiJpbWFnZS9qcGVnO2ltYWdlL3BuZyIsInNjb3BlIjoiZGhjLXJlZnVuZCIsImRlYWRsaW5lIjoxNDMwNjIwMDM3LCJmc2l6ZUxpbWl0Ijo1MjQyODgwfQ==';
        var orderRefund = "/account/order/0/refund/create/";
        var static = "/static/";
    </script>
    <script src="js/jquery.uploadify.min.js"></script>

    <script type="text/javascript" src="js/angular.min.js"></script>
    <script src="js/common.js"></script>
    
     
    <script src="js/service.js"></script>
    
    <script>var feedbackUrl = '/ajax/feedback/';var app = angular.module("app", ["dh.dialog", "dh.form", 'dh.service', 'dh.other']);</script>
    <!--[if lt IE 9]><script src="js/fix.js"></script><![endif]-->
    
    
    <script>
        var reviewUrl = "/mobile/ajax/order_review/",favoriteUrl = "/ajax/restaurant/0/favorite/";
    </script>
    <script src="js/user_center.js"></script>

    
    <script>angular.bootstrap(document, ["app"]);</script>

    <!-- Baidu Analytics -->

</body>
</html>
